<!DOCTYPE html>
<html>
<head>
<title>设备信息表</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/font-awesome.min.css">
<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="../../css/main.css">
<script src="../../libs/jquery.min.js"></script>
<script src="../../plugins/layer/layer.js"></script>
<script src="../../libs/bootstrap.min.js"></script>
<script src="../../libs/vue.min.js"></script>
<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="../../js/common.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<a v-if="hasPermission('deviceinformation:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			<a v-if="hasPermission('deviceinformation:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<a v-if="hasPermission('deviceinformation:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">设备品牌</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.deviecBrand" placeholder="设备品牌"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">机械类型（0-12对应挖掘机、装载机、矿用自卸车、推土机、压路机、平地机、混凝土机械、桩工机械、凿岩机械、摊铺机、俩头忙、旋挖钻、叉车）</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.machineryType" placeholder="机械类型（0-12对应挖掘机、装载机、矿用自卸车、推土机、压路机、平地机、混凝土机械、桩工机械、凿岩机械、摊铺机、俩头忙、旋挖钻、叉车）"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">出厂日期</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.dateOfProduction" placeholder="出厂日期"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">设备型号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.plateSubject" placeholder="设备型号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">发动机型号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.engineSubject" placeholder="发动机型号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">功率</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.power" placeholder="功率"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">购买日期</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.resBuyDate" placeholder="购买日期"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">发动机编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.enginePlateNum" placeholder="发动机编号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">设备是（0国产，1合资，2进口）</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.productionType" placeholder="设备是（0国产，1合资，2进口）"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">设备产地</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.productionAddress" placeholder="设备产地"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">行走方式(0轮式，1履带)</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.maneuver" placeholder="行走方式(0轮式，1履带)"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">工作时长</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.workTime" placeholder="工作时长"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">燃料类型（0柴油，1汽油，2天然气）</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.fuel" placeholder="燃料类型（0柴油，1汽油，2天然气）"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">尾气排放值(0未检测 1已检测)</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.outputVolume" placeholder="尾气排放值(0未检测 1已检测)"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">出厂编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.factoryNum" placeholder="出厂编号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">车牌号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.plateNum" placeholder="车牌号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">归属人身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.identification" placeholder="归属人身份证号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">设备所有人姓名(个人或企业名称)</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.registerName" placeholder="设备所有人姓名(个人或企业名称)"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.createDate" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">抵押状态1、已抵押 ,0、未抵押</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.mortgage" placeholder="抵押状态1、已抵押 ,0、未抵押"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">读取状态1、已读 ,0、未读</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="deviceInformation.state" placeholder="读取状态1、已读 ,0、未读"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="../../js/modules/generator/deviceinformation.js"></script>
</body>
</html>